<style type="text/css">
    .question-type-list-dynamic input{
        width: 60px!important;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('分类名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" data-rule="required" name="row[category_name]" placeholder="请输入分类名称" id="" value="{$info['category_name']|default=''}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exam_time" class="form-control datetimepicker" name="row[exam_time]" type="text" placeholder="请输入考试时间" value="{$info['exam_time']|default=''}">
        </div>
    </div>
    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__("时长")}</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" placeholder="请输入考试时长" name="row[duration]" value="{$info['duration']|default=''}">
        </div>
    </div>

    <div class="form-group" id="question-type">
        <label class="control-label col-xs-12 col-sm-2">题型</label>
        <div class="col-xs-12 col-sm-8">
            {volist name="questionType" id="item"}
            <label for="type{$item.questid}">
                <input type="checkbox" value="{$item.questid}" id="type{$item.questid}" data-code="{$item.questcode}" {$item.check}>
                <span>{$item.questype}</span>
            </label>
            {/volist}
            <input type="hidden" name="row[question_type]" value="{$info['question_type']|default=''}" id="question_type_id">
        </div>
    </div>

    <div class="question-type-list-dynamic">
        {if condition="isset($lists)"}
        {volist name="lists" id="item" key="index"}
        <div class="form-group" id="iselectallnumber_{$key}">
            <label for="iselectallnumber_{$key}" class="control-label col-xs-12 col-sm-2">{$item.name}</label>
            <div class="col-xs-12 col-sm-8 form-inline">
                <input type="hidden" name="row[extend][{$key}][name]" value="{$item.name}">
                <span class="info">共</span>
                <input class="form-control" type="text"  name="row[extend][{$key}][number]" value="{$item.number}"/>
                <span class="info">题，每题</span><input class="form-control"  type="text" name="row[extend][{$key}][score]" value="{$item.score}" >
                <span class="info">分，</span>
                <span class="info">易</span><input class="form-control" type="text" name="row[extend][{$key}][easynumber]" value="{$item.easynumber}" >
                <span class="info">中</span><input class="form-control" type="text"  name="row[extend][{$key}][middlenumber]" value="{$item.middlenumber}" >
                <span class="info">难</span><input class="form-control" type="text"  name="row[extend][{$key}][hardnumber]" value="{$item.hardnumber}" >
            </div>
        </div>
        {/volist}
        {/if}
    </div>

    <!--<div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__('单选题')}</label>
        <div class="col-xs-12 col-sm-8 form-inline">
            <span class="info">共</span>
            <input id="iselectallnumber_DXT" type="text" class="form-control"  name="args[papersetting][questype][DXT][number]" value="0"/>
            <span class="info">题，每题</span><input class="form-control"  type="text" name="args[papersetting][questype][DXT][score]" value="1" >
            <span class="info">分，
            <span class="info">易</span><input class="form-control" type="text" name="args[papersetting][questype][DXT][easynumber]" value="0" >
            <span class="info">中</span><input class="form-control" type="text"  name="args[papersetting][questype][DXT][middlenumber]" value="0" >
            <span class="info">难</span><input class="form-control" type="text"  name="args[papersetting][questype][DXT][hardnumber]" value="0" >
        </div>
    </div>-->


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_name" data-rule="required" class="form-control" name="row[sort]" type="number" placeholder="请输入排序" value="{$info['sort']|default='0'}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
